//package com.egene.app;
//
//import android.app.Application;
//import android.test.ApplicationTestCase;
//
//import com.egene.app.api.EgeneApi;
//import com.loopj.android.http.AsyncHttpClient;
//import com.loopj.android.http.AsyncHttpResponseHandler;
//
//import org.apache.http.Header;
//
///**
// * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
// */
//public class ApplicationTest extends ApplicationTestCase<Application> {
//    public ApplicationTest() {
//        super(Application.class);
//    }
//
//    @Override
//    public void setUp() throws Exception {
//        super.setUp();
//        // 初始化网络请求
//        AsyncHttpClient client = new AsyncHttpClient();
//        ApiHttpClient.setHttpClient(client);
//    }
//
//    public void testApi() throws Exception {
//        EgeneApi.getWikiAboutList(1, new AsyncHttpResponseHandler() {
//            @Override
//            public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
//                System.out.println(new String(responseBody));
//
//            }
//
//            @Override
//            public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {
//                System.out.println(new String(responseBody));
//
//            }
//        });
//
//
//    }
//}